From: Ian Campbell Date: Fri, 3 Sep 2010 17:44:49 +0000 (+0100) Subject: xl: do not run bootloader on restore. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11536 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=fa274ba294544aaf41682b645df3b61084df6a47;p=xen.git xl: do not run bootloader on restore. Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 3f6219b47b..9393059e71 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1402,10 +1402,12 @@ start: goto error_out; } - ret = libxl_run_bootloader(&ctx, &d_config.b_info, d_config.num_disks > 0 ? &d_config.disks[0] : NULL, domid); - if (ret) { - fprintf(stderr, "failed to run bootloader: %d\n", ret); - goto error_out; + if (!restore_file) { + ret = libxl_run_bootloader(&ctx, &d_config.b_info, d_config.num_disks > 0 ? &d_config.disks[0] : NULL, domid); + if (ret) { + fprintf(stderr, "failed to run bootloader: %d\n", ret); + goto error_out; + } } if (!restore_file || !need_daemon) {